# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=glacier-home
pkgver=0.37.4
pkgrel=1
pkgdesc="The Glacier homescreen"
url="https://github.com/nemomobile-ux/glacier-home"
# armhf blocked by libqofonoext
# s390x and riscv64 blocked by polkit-qt-1
arch="all !armhf !s390x !riscv64"
license="BSD-3-Clause AND MIT"
depends="
	connman
	libqofonoext
	mce
	nemo-qml-plugin-configuration
	nemo-qml-plugin-connectivity
	nemo-qml-plugin-contacts
	nemo-qml-plugin-devicelock
	nemo-qml-plugin-notifications
	nemo-qml-plugin-statusnotifier
	nemo-qml-plugin-time
	qt5-qtfeedback
	qt5-qtgraphicaleffects
	qt5-qtmultimedia
	qtmpris
	qtquickcontrols-nemo
	usb-moded
	"
makedepends="
	bluez-qt-dev
	extra-cmake-modules
	lipstick-dev
	nemo-qml-plugin-devicelock-dev
	polkit-qt-1-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qttools-dev
	qt5-qtwayland-dev
	samurai
	"
subpackages="$pkgname-dbg"
source="https://github.com/nemomobile-ux/glacier-home/archive/$pkgver/glacier-home-$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_SYSCONFDIR=/etc \
		-DUSE_SYSTEMD=OFF
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
272f3586b2f4c7b151ad6ed7f95f7ecadb43aba0b1b0742a276a5ecb8b2a4edfe6f35a1f3ae4739d75e8af05c5a5bb479d2cfdb846b6022827a36625a76c974d  glacier-home-0.37.4.tar.gz
"
